package com.maserb.monitor.service.jwQuestion.impl;

import com.maserb.monitor.entity.jwQuestion.JwQuestionItemUserEntity;
import com.maserb.monitor.entity.jwQuestion.JwQuestionOptionUserEntity;
import com.maserb.monitor.repository.JwQuestion.JwQuestionUserItemRepository;
import com.maserb.monitor.repository.JwQuestion.JwQuestionUserOptionRepository;
import com.maserb.monitor.service.base.impl.JpaSpecificationServiceImpl;
import com.maserb.monitor.service.jwQuestion.JwQuestionItemUserService;
import com.maserb.monitor.service.jwQuestion.JwQuestionOptionUserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JwQuestionOptionUserServiceImpl extends JpaSpecificationServiceImpl<JwQuestionUserOptionRepository,
        JwQuestionUserOptionRepository, JwQuestionOptionUserEntity, String>
        implements JwQuestionOptionUserService {

    @Override
    public List<JwQuestionOptionUserEntity> findByQuestionUserId(String questionUserId) {
        return this.repository.findByQuestionUserId(questionUserId);
    }
}